﻿#include"Goods.h"
#include"Armor.h"
Armor::Armor(int id) {
	switch (id) {
	case 16: {
		setid(id);
		setname("蓑衣");
		setintro("一件普通的蓑衣，遮风挡雨");
		add_df = 1;
		add_maxhp = 5;
		setprice(10);
		break;
	}
	case 17: {
		setid(id);
		setname("青丝绣衣");
		setintro("由精致的丝绣制成，缠缠绵绵丝丝防御");
		add_df = 10;
		add_maxhp = 10;
		setprice(200);
		break;
	}
	case 18: {
		setid(id);
		setname("流云披风");
		setintro("轻盈飘逸，如云般流动");
		add_df = 15;
		add_maxhp = 15;
		setprice(400);
		break;
	}
	case 19: {
		setid(id);
		setname("龙骨甲");
		setintro("由龙骨制成的护甲，具有强大的防护能力");
		add_df = 20;
		add_maxhp = 20;
		setprice(800);
		break;
	}
	case 20: {
		setid(id);
		setname("夜魔披风");
		setintro("具有黑暗的色彩，华丽与神秘");
		add_df = 30;
		add_maxhp = 30;
		setprice(1000);
		break;
	}
	case 21: {
		setid(id);
		setname("蟠龙袍");
		setintro("穿龙上身，腾云驾雾");
		add_df = 40;
		add_maxhp = 40;
		setprice(1500);
		break;
	}




	default:
		break;
	}
}
int Armor::getadd_df() const {
	return add_df;
}
int Armor::getadd_mp() const{
	return add_maxhp;
}
void Armor::show() {
	cout << getname() << endl;
	cout << get_introduce() << endl;
	cout << "防御力：" << add_df << endl;
	cout << "增加生命值：" << add_maxhp << endl;
}
